package com.rocket;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author guoQ.z
 * @date 2021/2/5
 */
@Slf4j
@SpringBootApplication
public class RocketProducerApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(RocketProducerApplication.class);
        String port = run.getEnvironment().getProperty("server.port");
        log.info("server.port:{}", port);
    }
}
